﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using KingsSharp.Core.Data;

namespace CRM.Admin.Contracts.Dto.Customer
{
    /// <summary>
    /// 产品Dto
    /// </summary>
    public class ProductDto : IAddDto, IEditDto<Guid>
    {
        /// <summary>
        /// 
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 产品/品种名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 年产量/销售量
        /// </summary>
        public decimal SaleWeight { get; set; }

        /// <summary>
        /// 所需钢材量
        /// </summary>
        public decimal NeedSteelWeight { get; set; }

        /// <summary>
        /// 使用钢材品种
        /// </summary>
        public string UseSteelType { get; set; }

        /// <summary>
        /// 使用钢材品种单耗
        /// </summary>
        public decimal Consumption { get; set; }

        /// <summary>
        /// 顾客外键
        /// </summary>
        public Guid CustomerId { get; set; }
    }

    /// <summary>
    /// 零件Dto
    /// </summary>
    public class ComponentDto : IAddDto, IEditDto<Guid>
    {
        /// <summary>
        /// 
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 零件名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 图样路径
        /// </summary>
        public string PatternPath { get; set; }

        /// <summary>
        /// 尺寸
        /// </summary>
        public string Size { get; set; }

        /// <summary>
        /// 下料尺寸
        /// </summary>
        public string DownSize { get; set; }

        /// <summary>
        /// 产品外键
        /// </summary>
        public Guid ProductId { get; set; }
    }
}
